<?php
/* -------------------------------------------------------------------------------------
* 	ID:						$Id: error_handler.php 135 2013-09-22 07:30:55Z phone.mueller@googlemail.com $
* 	Letzter Stand:			$Revision: 135 $
* 	zuletzt geaendert von:	$Author: siekiera $
* 	Datum:					$Date: 2013-09-22 07:30:55 +0000 (Sun, 22 Sep 2013) $
*
* 	SEO:mercari by Siekiera Media
* 	http://www.seo-mercari.de
*
* 	Copyright (c) since 2011 SEO:mercari
* --------------------------------------------------------------------------------------
* 	based on:
* 	(c) 2000-2001 The Exchange Project  (earlier name of osCommerce)
* 	(c) 2002-2003 osCommerce - www.oscommerce.com
* 	(c) 2003     nextcommerce - www.nextcommerce.org
* 	(c) 2005     xt:Commerce - www.xt-commerce.com
*
* 	Released under the GNU General Public License
* ----------------------------------------------------------------------------------- */

$module_smarty= new Smarty;
$module_smarty->assign('tpl_path','templates/'.CURRENT_TEMPLATE.'/');
include(DIR_WS_MODULES.'fuzzy_search.php');

if(isset($filter_products) && !empty($filter_products))
	$module_smarty->assign('filter', TEXT_FILTER_IS_ON);

$module_smarty->assign('language', $_SESSION['language']);
$module_smarty->assign('ERROR',$error);
$module_smarty->assign('BUTTON','<a href="javascript:history.back(1)">'. image_button('button_back.gif', IMAGE_BUTTON_CONTINUE).'</a>');
$module_smarty->assign('language', $_SESSION['language']);

$module_smarty->assign('FORM_ACTION',draw_form('new_find', href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get').draw_hidden_field('box','true'));
$module_smarty->assign('INPUT_SEARCH',draw_input_field('keywords', '', 'size="30" maxlength="30" value="'.BOX_SEARCH_VALUE.'" onblur="if(this.value==\'\') this.value=\''.BOX_SEARCH_VALUE.'\';" onfocus="if(this.value==\''.BOX_SEARCH_VALUE.'\') this.value=\'\';"'));
$module_smarty->assign('BUTTON_SUBMIT',image_submit('button_quick_find.gif', BOX_HEADING_SEARCH));
$module_smarty->assign('LINK_ADVANCED',href_link(FILENAME_ADVANCED_SEARCH));
$module_smarty->assign('FORM_END', '</form>');

$module_smarty->caching = false;
$module= $module_smarty->fetch(CURRENT_TEMPLATE.'/module/error_message.html');

if (strstr($PHP_SELF, FILENAME_PRODUCT_INFO))  
	$product_info = $module;

$smarty->assign('main_content',$module);
?>